//
//  AXFShoppingCarViewController.m
//  aixinfeng005
//
//  Created by zhanghaifeng on 16/10/10.
//  Copyright © 2016年 BBSWaitting. All rights reserved.
//

#import "AXFShoppingCarViewController.h"

@interface AXFShoppingCarViewController ()

@end

@implementation AXFShoppingCarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"购物车";
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self setupUI];
    
}

#pragma mark - 搭建界面
- (void)setupUI {
    
    //创建图片
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(150, 150, 100, 100)];
    imageView.image = [UIImage imageNamed:@"shopCart_r"];
    [self.view addSubview:imageView];
    
    //创建leibel
    UILabel *label = [[UILabel alloc] init];
    
    label.font = [UIFont systemFontOfSize:13];
    label.textColor = [UIColor lightGrayColor];
    label.textAlignment = NSTextAlignmentCenter;
    label.text = @"亲，购物车空空的耶~赶紧的去挑好吃的吧";
    
    [self.view addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(imageView.mas_bottom).offset(50);
        make.left.right.equalTo(self.view).offset(0);
    }];
    
    //创建逛逛按钮
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    
    btn.frame = CGRectMake(120, 350, 150, 40);
    
    [btn setTitle:@"去逛逛" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
    btn.titleLabel.font = [UIFont systemFontOfSize:13];
    
    [btn.layer setBorderColor:[UIColor lightGrayColor].CGColor];
    [btn.layer setBorderWidth:1];
    [btn.layer setMasksToBounds:YES];
    
    [self.view addSubview:btn];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
